﻿<UserControl x:Class="SLRT.usercontrols.ResultControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:sys="clr-namespace:System;assembly=mscorlib" 
             xmlns:control="clr-namespace:SLRT.control"
             mc:Ignorable="d" Loaded="UserControl_Loaded">
    <UserControl.Resources>
        <control:MyImageConverter x:Key="conv"/>
    </UserControl.Resources>
    <Grid Name="MainGrid">
        <Image Name="ProcessedImage" Source="{Binding ProcessedImage, Converter={StaticResource conv}}" Width="320" Height="240"  HorizontalAlignment="Left" VerticalAlignment="Center"/>
        <Rectangle Name="ProcessingRectangle" Opacity="0.7" HorizontalAlignment="Right" VerticalAlignment="Center" Stroke="Aqua" StrokeDashCap="Square" StrokeThickness="1">
            <Rectangle.StrokeDashArray>
                <sys:Double>8</sys:Double>
            </Rectangle.StrokeDashArray>
        </Rectangle>

        <Grid Name="OutputGrid" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="0,0,0,30">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Image Name="QueryImage" Grid.Column="0" Source="{Binding QueryImage, Converter={StaticResource conv}}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="20,0,0,0" Opacity="0.7" />
            <Rectangle Name="TextBar" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Fill="Black" Margin="10,0,10,0" Opacity="0.1" RadiusX="15" RadiusY="15"/>
            <StackPanel Name="StringResultPanel" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Margin="30,0,0,0" Opacity="0.7" >
                <TextBlock Name="CorrectString" Text="{Binding CompletingWord}" FontSize="40" FontFamily="Arial" Foreground="Aqua"/>
                <TextBlock Name="CurrentLetter" FontSize="40" FontFamily="Arial"  Foreground="Red"/>
            </StackPanel>
            
              
        </Grid>
        
    </Grid>
</UserControl>
